package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.order.OrderStatisticsDto;
import com.atguigu.spzx.model.entity.order.OrderStatistics;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName: OrderStatisticsMapper
 * Package: com.atguigu.spzx.manager.mapper
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/7 16:39
 * @Version 1.0
 */
@Mapper
public interface OrderStatisticsMapper {
    /* 保存订单统计数据*/
    void save(OrderStatistics orderStatistics);

    /**
     * 根据日期范围查找订单统计数据
     * @param orderStatisticsDto
     * @return
     */
    List<OrderStatistics> getOrderStatisticsData(OrderStatisticsDto orderStatisticsDto);
}
